<?php
	class Libraries_libhome extends database{
		protected $_table = "tbl_products";
		protected $_config = "tbl_config";
		public function list_slide(){
			$sql = "select * from tbl_slideshow where slide_status = '1'";
			$this->query($sql);
			return $this->fetchAll();
		}
		public function getconfig($id){
			$sql = "select * from $this->_config";
			$this->query($sql);
			return $this->fetch();
		}
	}
?>